import React from 'react'
import { changeRouter } from '../../js/action/index'
import { connect } from 'react-redux'
import Go from '../../commponent/go/index'


const mapDispatchToProps = dispatch => ({
  changeRouter: key => dispatch(changeRouter(key))
})
function goPage ({ changeRouter }) {
  changeRouter('2')
  return (
    <Go />
  )
}

export default connect(null, mapDispatchToProps)(goPage)